import { dateFormat } from '@/util/date';
export const nowDate = dateFormat(new Date(), 'yyyy-MM-dd');
export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  addBtn: false,
  delBtn: false,
  printBtn: false,
  menuWidth: 100,
  menu: false,
  selection:true,
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      hide: true,
      display: false
    },	  {
      "type": "select",
      "label": "线路",
      "prop": "lineCode",
      search: true,
      cascaderItem: ["stationCode"],
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamline/dict",
      display: false
    },	  {
      "type": "select",
      "label": "车站",
      "prop": "stationCode",
      search: true,
      props: {
      	label: 'name',
      	value: 'code'
      },
      dicFlag: false,
      dicUrl: "/support/swparamstation/dict/{{key}}",
      display: false
    },	  {
      "type": "date",
      "label": "日期",
      "prop": "statisticsDate",
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      search: true,
      searchValue: nowDate
    },	  {
      label: '票种',
      prop: 'ticketTypeEn',
      search: true,
      type: 'select',
      dicUrl: '/support/swpmticketcardtype/dict',
      props: {
        label: 'mainName',
        value: 'mainEnName'
      },
      cascaderItem: ["ticketTypeParamEn"],
      rules: [{
        required: true,
        message: '请选择票种',
        trigger: 'blur'
      }]
    },	  {
      label: '车票名称',
      prop: 'ticketTypeParamEn',
      type: 'select',
      props: {
        label: 'subName',
        value: 'subEnName'
      },
      dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
      dicFlag: false,
      search: true,
      rules: [{
        required: true,
        message: '请选择车票名称',
        trigger: 'blur'
      }]
    },	  {
      "type": "input",
      "label": "上日结存",
      "prop": "balanceLastday"
    },	  {
      "type": "input",
      "label": "调入本站",
      "prop": "transferStation"
    },	{
      "type": "number",
      "label": "调出本站",
      "prop": "leaveStation",
    },  {
      "type": "input",
      "label": "配入本站",
      "prop": "distributionStation"
    },	  {
      "type": "input",
      "label": "AGM回收",
      "prop": "agmRecovery"
    },	  {
      "type": "input",
      "label": "票房售出",
      "prop": "boxOfficeSale"
    },	  {
      "type": "input",
      "label": "车票替换",
      "prop": "ticketReplace"
    },	  {
      "type": "input",
      "label": "TVM售出",
      "prop": "tvmSellOut"
    },	  {
      "type": "input",
      "label": "网络售出",
      "prop": "internetSales"
    },	  {
      "type": "input",
      "label": "BOM废票",
      "prop": "bomScrapTicket"
    },	  {
      "type": "input",
      "label": "TVM废票",
      "prop": "tvmScrapTicket"
    },	  {
      "type": "input",
      "label": "AGM废票",
      "prop": "agmScrapTicket"
    },	  {
      "type": "input",
      "label": "网络机废票",
      "prop": "networkScrapTicket"
    },	  {
      "type": "input",
      "label": "废票小计",
      "prop": "scrapSubtotal"
    },	  {
      "type": "input",
      "label": "上交车票",
      "prop": "handTicket"
    },	  {
      "type": "input",
      "label": "人工回收",
      "prop": "artificialRecovery"
    },	  {
      "type": "input",
      "label": "本日结存",
      "prop": "balanceToday"
    },	  {
      "label": "备注",
      "prop": "remark",
      width: 200
    },  {
      "type": "input",
      "label": "异常原因",
      "prop": "diffCase",
      hide: true
    },  {
      "type": "select",
      "label": "通知状态",
      "prop": "confirmStatus",
      dicData:[{
        label:'无',
        value:'0',
      },{
        label:'已通知',
        value:'1',
      }],
      hide: true
    },		  {
      "type": "input",
      "label": "部门ID",
      "prop": "deptId",
      hide: true,
      display: false
    },	  {
      "type": "input",
      "label": "创建人ID",
      "prop": "creatorId",
      hide: true,
      display: false
    },	  {
      "type": "input",
      "label": "创建人名称",
      "prop": "creatorName",
      hide: true,
      display: false
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      hide: true,
      display: false
    },	  {
      "type": "input",
      "label": "数据更新时间",
      "prop": "updateTime",
      hide: true,
      display: false
    }]
}
